x86/vtx: Introduce a typed union for CR access exit information
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Jan 2018 15:45:37 +0000 (15:45 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Apr 2018 11:18:39 +0000 (12:18 +0100)
commitc0d98b35714fb707217c9062b6518e158cd72eea
tree174dca9d194ca86bb7353dfc810ca602eb0d8741
parent36bc5fc631b08bcf03c6977e79f026a459d76302
x86/vtx: Introduce a typed union for CR access exit information

This reduces code volume, and has a minor improvement on compiled size,
probably due to the removal of several temporary variables.

  add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-50 (-50)
  function                                     old     new   delta
  vmx_vmexit_handler                          6881    6878      -3
  nvmx_n2_vmexit_handler                      3473    3426     -47

Take the opportunity to make some style corrections, and add some
ASSERT_UNREACHABLE()s in appropriate places.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vmx.h